package my;

import my.spring.context.AnnotationConfigEmbeddedWebApplicationContext;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ServletComponentScan
@EnableAsync
@EnableCaching
@EnableTransactionManagement
public class Application {
	public static void main(String[] args) {
	    new SpringApplicationBuilder(Application.class)
	        .contextClass(AnnotationConfigEmbeddedWebApplicationContext.class)
	        .run(args);
	}
}
